package ckf.man.practice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName lateral_line
 */
@TableName(value ="lateral_line")
@Data
public class LateralLine implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer lateralLineId;

    /**
     * 
     */
    private Integer equipmentId;

    /**
     * 
     */
    private Integer schemeId;

    /**
     * 
     */
    private String lateralLineName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LateralLine other = (LateralLine) that;
        return (this.getLateralLineId() == null ? other.getLateralLineId() == null : this.getLateralLineId().equals(other.getLateralLineId()))
            && (this.getEquipmentId() == null ? other.getEquipmentId() == null : this.getEquipmentId().equals(other.getEquipmentId()))
            && (this.getSchemeId() == null ? other.getSchemeId() == null : this.getSchemeId().equals(other.getSchemeId()))
            && (this.getLateralLineName() == null ? other.getLateralLineName() == null : this.getLateralLineName().equals(other.getLateralLineName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLateralLineId() == null) ? 0 : getLateralLineId().hashCode());
        result = prime * result + ((getEquipmentId() == null) ? 0 : getEquipmentId().hashCode());
        result = prime * result + ((getSchemeId() == null) ? 0 : getSchemeId().hashCode());
        result = prime * result + ((getLateralLineName() == null) ? 0 : getLateralLineName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", lateralLineId=").append(lateralLineId);
        sb.append(", equipmentId=").append(equipmentId);
        sb.append(", schemeId=").append(schemeId);
        sb.append(", lateralLineName=").append(lateralLineName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}